<div class="categories super">
	<h2><?= $ebocash->category($super_name) ?></h2>
	<h4>Sub-categories</h4>
	<table class="subCategories"><?
		$offset = strlen($super_name)+1;
		foreach($categories as $c) {
			?><tr><td class="name"><?
				$n = substr($c['Category']['name'], $offset);
				echo $html->link($n, array('controller'=>'categories', 'action'=>'view', $c['Category']['id']));
			?></td>
			<td class="purchaseCount">
			<?= $number->format($c['Category']['purchase_count']) ?> purchases
			</td>
			<td class="amount numeric">
			<?= $number->currency($totals[$c['Category']['id']], 'GBP') ?>
			</td>
			</tr><?
		}
	?></table>
</div>
<div class="purchases">
<?
	echo $this->renderElement('purchases');
?></div>
